<?php

namespace Controller\User;

class MessageDetail extends Base {

    protected $menuType = 'message';

    public function actionIndex() {
        $param = $this->getRouteParams();
        $helloId = !empty($param[0]) ? (int) $param[0] : 0;
        $helloDetail = \Business\User::instance()->getHelloDetail($helloId, $this->userId);
        if (!$helloDetail) {
            $this->throwException('未找到数据');
        }
        $reply = \Business\User::instance()->getHelloReply($helloId);
        $this->assign('helloDetail', $helloDetail);
        $this->display();
    }
}